<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>无标题文档</title>
</head>
<body>
<script>
var i =0;

function fn1(){document.title = i; i++;}
//fn1();
//document.onclick = fn1;
var timer = setInterval(fn1,1000);
document.onclick = function (){
	clearInterval(timer);
}
</script>
</body>
</html>
